<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
<meta charset="UTF-8">
<title>柒捌玖|注册</title>
<link rel="stylesheet" href="LoginAndRegister.css">
</head>
<body>
<header>
  <div class="header-line"></div>
</header>
<div class="carousel-background">

</div>
<div class="content">
  <img class="content-logo" src="image/SevenEightWineLogo.png" alt="logo">
  <h1 class="content-title">创建账户</h1>
  <div class="content-form">
    <form method="post" action="register">
      <div id="change_margin_1">
        <label>
          <input class="user" type="text" name="username1" placeholder="请输入用户名">
        </label>
      </div>

      <p id="remind_1"></p>
      <div id="change_margin_2">
        <label>
          <input class="password" type="password" name="password1" placeholder="请输入密码">
        </label>
      </div>
      <p id="remind_2"></p>
      <div id="change_margin_3">
        <label>
          <input class="password" type="password" name="password2" placeholder="请再次输入密码">
        </label>
      </div>

      <p id="remind_3"></p>
      <div id="change_margin_4">
        <input class="content-form-signup" type="submit" value="创建账户">
      </div>
    </form><%
    String warn = (String) request.getAttribute("warn");
    if (warn != null && !warn.isEmpty()) {
  %>
    <p style="color: red"><%= warn %></p>
    <%
      }
    %>
  </div>
  <div class="content-login-description">已经拥有账户？</div>
  <div><a class="content-login-link" href="login.jsp">登录</a></div>
</div>
<script src="LoginAndRegister.js"></script>
</body>
</html>
